package edu.gatech.bsbmule.presenter;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import edu.gatech.bsbmule.view.ITownScreen;
import edu.gatech.bsbmule.view.TownWindow;


/**
 * Town screen presenter
 * 
 * @author Hanjie
 * @version 1.0 10/29/13
 */
public class TownScreenPresenter {
	private ITownScreen view;

	public TownScreenPresenter(ITownScreen view) {
		this.view = view;
	}
	
	public void setLOButtonListener(final MapScreenPresenter msp) {
		view.setLOButtonListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent e) {
				msp.setIntrade(true);
				msp.setTradingStatus(true);
				TownWindow.getInstance().dispose();
			}
		});
	}	
}
